home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(mouseMove){
- if(_root.padf == 1)
- {
- _root.newx = Math.floor(this._xmouse);
- if(_root.olds == -99)
- {
- _root.olds = Math.floor(Math.abs(_root.newx - _root.oldx));
- _root.MemoriSet(0);
- _root.i = _root.i + 1;
- if(_root.olds < 10)
- {
- _root.olds = 10;
- }
- }
- else if(_root.i < 6)
- {
- _root.MemoriSet(1);
- _root.news = Math.abs(_root.newx - _root.oldx);
- _root.val = _root.news / _root.olds;
- if(_root.val < 1)
- {
- _root.speed += _root.news;
- if(_root.news < 10)
- {
- _root.news = 10;
- }
- }
- else if(_root.val > 1.5)
- {
- _root.speed = Math.floor(3.3 / Math.pow(_root.val,3) * _root.news * 10) * _root.i + _root.speed;
- }
- else
- {
- _root.speed = Math.floor(_root.val * _root.news * 10) * _root.i + _root.speed;
- }
- _root.olds = _root.news;
- _root.i = _root.i + 1;
- }
- _root.oldx = _root.newx;
- if(_root.i == 6)
- {
- _root.padf = 2;
- _root.runf = 1;
- }
- }
- }
-